{include template('header', 'common')}
<div class="main">
	<div class="col-left">
		<div class="crumbs"><a href="{__ROOT__}">首页</a><span> > </span>{catpos($catid)}  正文</div>
        <div id="Article">
        	<h1>{$title}<br />
        	<span>{$inputtime}&nbsp;&nbsp;&nbsp;来源：&nbsp;&nbsp;&nbsp;评论：<a href="#comment_iframe" id="comment">0</a> 点击：</span><span id="hits"></span></h1>
        	<?php if ($description): ?>
        	<div class="summary">{$description}</div>
        	<?php endif; ?>        	
        	<div class="content">{$content}</div>
			<div id="pages" class="text-c">{$pages}</div>
            <p style="margin-bottom:10px"><strong>相关热词搜索：</strong></p>
            <p class="f14">
                <strong>上一篇：</strong><a href="{$pre_page[url]}">{$pre_page[title]}</a><br />
                <strong>下一篇：</strong><a href="{$next_page[url]}">{$next_page[title]}</a>
            </p>
            <div class="bk15"></div>
            <script type="text/javascript" src="http://127.0.0.1/phpcms_v9/index.php?m=mood&c=index&a=init&id=9-3-1"></script>
            </div>
            <div class="Article-Tool">
          分享到：
		  <img src="http://v.t.qq.com/share/images/s/weiboicon16.png" style="padding-bottom:3px;" onclick="postToWb();" class="cu" title="分享到腾讯微博"/><script type="text/javascript">
	function postToWb(){
		var _t = encodeURI(document.title);
		var _url = encodeURIComponent(document.location);
		var _appkey = encodeURI("cba3558104094dbaa4148d8caa436a0b");
		var _pic = encodeURI('');
		var _site = '';
		var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;
		window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
	}
</script>
          <script type="text/javascript">document.write('<a href="http://v.t.sina.com.cn/share/share.php?url='+encodeURIComponent(location.href)+'&appkey=3172366919&title='+encodeURIComponent('fdsafsafsa')+'" title="分享到新浪微博" class="t1" target="_blank">&nbsp;</a>');</script>
		  <script type="text/javascript">document.write('<a href="http://www.douban.com/recommend/?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent('fdsafsafsa')+'" title="分享到豆瓣" class="t2" target="_blank">&nbsp;</a>');</script>
		  <script type="text/javascript">document.write('<a href="http://share.renren.com/share/buttonshare.do?link='+encodeURIComponent(location.href)+'&title='+encodeURIComponent('fdsafsafsa')+'" title="分享到人人" class="t3" target="_blank">&nbsp;</a>');</script>
		  <script type="text/javascript">document.write('<a href="http://www.kaixin001.com/repaste/share.php?rtitle='+encodeURIComponent('fdsafsafsa')+'&rurl='+encodeURIComponent(location.href)+'&rcontent=" title="分享到开心网" class="t4" target="_blank">&nbsp;</a>');</script>
		  <script type="text/javascript">document.write('<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(location.href)+'" title="分享到QQ空间" class="t5" target="_blank">&nbsp;</a>');</script>
      
	  <span id='favorite'>
		<a href="javascript:;" onclick="add_favorite('fdsafsafsa');" class="t6">收藏</a>
	  </span>

	  </div>
      <div class="bk10"></div>
      <iframe src="http://127.0.0.1/phpcms_v9/index.php?m=comment&c=index&a=init&commentid=content_9-3-1&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
      <div class="box">
      <h5>评论排行</h5>
      <ul class="content list blue f14 row-2">
      	
      </ul>
      </div>
      </div>
    <div class="col-auto">
        <div class="box">
            <h5 class="title-2">相关文章</h5>
            {pc:document action="relation" relation="$relation" catid="$catid" num="5" keywords="$rs[keywords]"}
            <ul class="content digg">
				{loop $data $r}
					<li><a href="{$r.url}" {title_style($r['style'])} target="_blank">{$r[title]}</a></li>
				{/loop}
            </ul>
            {/pc}
        </div>
        <div class="bk10"></div>  
        <div class="box">
            <h5 class="title-2">频道总排行</h5>
            {pc:document action="hits" catid="$catid" num="10" order="views DESC" cache="3600"}
            <ul class="content digg">
				{loop $data $r}
					<li><a href="{$r.url}" {title_style($r['style'])} target="_blank">{$r[title]}</a></li>
				{/loop}
            </ul>
            {/pc}
        </div>
        <div class="bk10"></div>
        <div class="box">
            <h5 class="title-2">频道本月排行</h5>
            <ul class="content rank">
            {pc:document action="hits" catid="$catid" num="8" order="monthviews DESC" cache="3600"}
            <ul class="content rank">
				{loop $data $r}
				<li><span>{number_format($r['monthviews'])}</span><a href="{$r['url']}" {title_style($r['style'])} class="title" title="{$r['title']}">{str_cut($r['title'],56,'...')}</a></li>
				{/loop}
            </ul>
            {/pc}
            </ul>
        </div>
    </div>
</div>
<script type="text/javascript">
<!--
	function show_ajax(obj) {
		var keywords = $(obj).text();
		var offset = $(obj).offset();
		var jsonitem = '';
		$.getJSON("http://127.0.0.1/phpcms_v9/index.php?m=content&c=index&a=json_list&type=keyword&modelid=1&id=3&keywords="+encodeURIComponent(keywords),
				function(data){
				var j = 1;
				var string = "<div class='point key-float'><div style='position:relative'><div class='arro'></div>";
				string += "<a href='JavaScript:;' onclick='$(this).parent().parent().remove();' hidefocus='true' class='close'><span>关闭</span></a><div class='contents f12'>";
				if(data!=0) {
				  $.each(data, function(i,item){
					j = i+1;
					jsonitem += "<a href='"+item.url+"' target='_blank'>"+j+"、"+item.title+"</a><BR>";
					
				  });
					string += jsonitem;
				} else {
					string += '没有找到相关的信息！';
				}
					string += "</div><span class='o1'></span><span class='o2'></span><span class='o3'></span><span class='o4'></span></div></div>";		
					$(obj).after(string);
					$('.key-float').mouseover(
						function (){
							$(this).siblings().css({"z-index":0})
							$(this).css({"z-index":1001});
						}
					)
					$(obj).next().css({ "left": +offset.left-100, "top": +offset.top+$(obj).height()+12});
				});
	}

	function add_favorite(title) {
		$.getJSON('http://127.0.0.1/phpcms_v9/api.php?op=add_favorite&title='+encodeURIComponent(title)+'&url='+encodeURIComponent(location.href)+'&'+Math.random()+'&callback=?', function(data){
			if(data.status==1)	{
				$("#favorite").html('收藏成功');
			} else {
				alert('请登录');
			}
		});
	}

$(function(){
  $('#Article .content img').LoadImage(true, 660, 660,'http://127.0.0.1/phpcms_v9/statics/images/s_nopic.gif');    
})
//-->
</script>
<script language="JavaScript" src="http://127.0.0.1/phpcms_v9/api.php?op=count&id=3&modelid=1"></script>
{include template('footer', 'common')}